It seems in OSX the search domain will not be appended to hostnames that contain two or more labels separated by dots. For example pinging the the following does not work
To solve this, do the following below:
<dict>
<array>
<string>/usr/sbin/mDNSResponder</string>
</array>
<dict>
<array>
<string>/usr/sbin/mDNSResponder</string>
<string>-AlwaysAppendSearchDomains</string>
</array>
Referenced from: http://apple.stackexchange.com/questions/140160/alternative-to-alwaysappendsearchdomains-on-yosemite